<script setup lang="ts">
import localeStore from '@/store/locale'
import { storeToRefs } from 'pinia'
const { localeInfo} = storeToRefs(localeStore())
const router = useRouter()
function onRouteBtnClick() {
  router.push('/FormEmail')
}
</script>

<template>
  <div class="ultrasound">
     <div class="img_txt">
      <img class="posi_top_img1" src="@/assets/img/medical/chao_1.png" alt="">
      <img class="maxwidth_img" src="@/assets/img/animal/6.jpg" alt="">
        <p>
          <span>{{localeInfo.ultrasound.txt}}</span>
          <span>{{localeInfo.ultrasound.txt1}}</span>
        </p>
     </div>
      <div class="content">
        <div class="content_img">
          <img class="posi_top_img" src="@/assets/img/medical/Ultrasound.jpg" alt="">
          <img class="posi_top_img" src="@/assets/img/medical/X-Ray.png" alt="">
        </div>
        <div>
          <p v-for="(item,index) in localeInfo.ultrasound.desc" :key="index" :class="[index==6?'margintop20':'']">{{item}}</p>
        </div>
        <!-- <img src="@/assets/img/medical/ultrasound.png" alt=""> -->
      </div>
      <div class="btn">
      <p>{{localeInfo.ultrasound.btnDesc}}</p>
      <p @click="onRouteBtnClick">
        <span>{{localeInfo.ultrasound.btntxt}}</span>
      </p>
    </div>
  </div>
</template>

<style lang="scss" scoped>
.ultrasound{
  
  .img_txt{
    position: relative;
    // overflow: hidden;
    img{
      width: 90%;
      display: block;
      margin: auto;
    }
    .posi_top_img1{
      position: absolute;
      bottom: -40px;
      left: 0px;
      z-index: 5;
     
      width: 120px;
    }
    p{
      position: absolute;
      top: 0;
      right: 5%;
      width: 40%;
      padding:2px 4px;
      background-color: rgba(203,204,203,0.5);
      padding-right: 40px;
      span{
        display: block;
         
         text-align: left;
         color: #FFF;
         font-size: 15px;
          line-height: 20px;
        &:nth-child(1) {
          font-weight: bolder;
         font-weight: 10PX;
          margin-bottom: 25PX;
          font-size: 30PX;
          line-height: 30PX;
          font-size: 30px;
          line-height: 40px;
        }
      }
    }
  }
  .content{
    position: relative;
    .content_img{
    
      height: 80px;
      
      .posi_top_img{
        position: absolute;
     
         top: -20px;
        z-index: 10;
        width: 100px;
        &:nth-child(1) {
             top: -40px;
          right: 120px;
        }
        &:nth-child(2) {
             top: -100px;
          right: 0px;
          width: 100px;
        }
      }
    }
    div{
      padding: 0PX 0 0 10PX;
      p{
        font-size: 14PX;
        color: #666;
        display: inline-block;
      }
    }
    img{
      width: 150px;
      position: absolute;
      top: -95px;
      right: 30px;
    }
  }
 .btn{
      background-color: rgba(242,242,242,0.5);
      padding: 25px 0 15px 0;
      display: flex;
      display: -webkit-flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      margin-bottom: 5PX;
      p{
        &:nth-child(1){
          color: #666;
          font-size: 16px;
          margin-bottom: 15px;
        }
        &:nth-child(2) {
          span{
            background-color: rgba(252,13,27,1);
            text-align: center;
            padding: 8PX 20PX;
            font-size: 8PX;
            color: #FFF;
            border-radius: 4PX;
          }
        }
      }
    }
}
</style>
